home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Snippets / SuperSplash 1.0d1 / sources / •AZN_SUPER_SPLASH / AZN_TSuperSplash.h < prev   
C/C++ Source or Header  |  1995-10-20  |  1KB  |  58 lines

  1. #pragma once
  2. /*    
  3. *    AZN_TSuperSplash.h
  4. *
  5. *    Class declaration for 'TSuperSplash' class, a class
  6. *    to put up and manage a splash screen
  7. *    Inheritance:    BASE CLASS
  8. *
  9. *    © Andrew Nemeth  Warrimoo  Australia  1995
  10. *    aznemeng@zeta.org.au
  11. *
  12. *    File opened:        20 Jul 95
  13. *    File ammended:        20—23 Jul;
  14. *                    16 Sep;
  15. *                    20 Oct 95.
  16. */
  17.  
  18.  
  19. //    CLASS dec
  20. //
  21. class    TSuperSplash
  22. {
  23.     public:
  24.         TSuperSplash();
  25.         TSuperSplash( const short /*PICT res ID*/ );
  26.         TSuperSplash( ConstStr63Param /*Filename*/ );
  27.         
  28.         ~TSuperSplash();
  29.  
  30.         Boolean            showSplash            ( void );
  31.         Boolean            showSplash            ( const FSSpec & /*Image file*/ );
  32.         void                killSplash            ( void );
  33.  
  34.         static Boolean    hasColourQD            ( void );
  35.  
  36.     private:
  37.         GrafPtr            f_OldGrafPort;
  38.         WindowPtr            f_ptrWind;
  39.         PicHandle            f_hPict;
  40.         short            f_shPictRes_ID;
  41.         Str63            f_str63FileName;
  42.         Boolean            f_boolBigImg;
  43.  
  44.         void                drawSplash            ( PicHandle );
  45.  
  46.         OSErr            grabNamedFile            ( ConstStr63Param, FSSpecPtr );
  47.         OSErr            grabPictHandleFromFile    ( const FSSpec &, PicHandle * );
  48.         OSErr            grabVol_ParId            ( short *, long * );
  49.         Boolean            isFileOfType            ( const FSSpec &, const OSType );
  50.         Boolean            quicktimeAvailable        ( void );
  51.         void                centreWindow            ( WindowPtr, Boolean /*ALRT pos?*/ );
  52.         
  53. //                                                        prevent copy/ assign of class
  54.     private:
  55.         TSuperSplash  &      operator=( const TSuperSplash & );
  56.         TSuperSplash( const TSuperSplash & );
  57. };
  58.